package com.hp.ongoing.app.view.form.contract;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import org.swingBean.actions.ApplicationAction;
import org.swingBean.gui.JActButton;

@SuppressWarnings("serial")
public class JTransparentButton extends JActButton{
	
	public JTransparentButton(String icone, String toolTipText, ApplicationAction action) {		
		super("", action);
		this.setToolTipText(toolTipText);
		this.setIcon(new javax.swing.ImageIcon(getClass().getResource(icone)));
		this.setContentAreaFilled(false);
		
		this.addMouseListener(new MouseAdapter()
        {
            public void mouseEntered(MouseEvent evt)
            {
            	setContentAreaFilled(true);
            }
            public void mouseExited(MouseEvent evt)
            {
            	setContentAreaFilled(false);
            }
        });							
	}
}
